//
//  Cell.m
//  自动计算单元格高度
//
//  Created by vera on 14-9-13.
//  Copyright (c) 2014年 vera. All rights reserved.
//

#import "Cell5_3.h"

@implementation Cell5_3

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = WQColor(241, 243, 244);
        
        UIView *container_ = [[UIView alloc] initWithFrame:CGRectMake(0 ,4 ,screenW, 82)];
        //container_.layer.cornerRadius = 3.0;
        container_.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:container_];
        
        // Initialization code
        _titleLabel1 = [[UILabel alloc] initWithFrame:CGRectMake(10, 0,screenW - 20, 30)];
        _titleLabel1.numberOfLines = 0;
        [container_ addSubview:_titleLabel1];
        
//        _image = [[UIImageView alloc] initWithFrame:CGRectMake(5,60, screenW - 21, 120)];
//        _image.image = [UIImage imageNamed:@"heart"];
//        [container_ addSubview:_image];
        
        _timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 48, 150, 30)];
        _timeLabel.numberOfLines = 1;
        _timeLabel.font = [UIFont systemFontOfSize:12];
        _timeLabel.textColor = [UIColor lightGrayColor];
        [container_ addSubview:_timeLabel];
        
        _reportStatusLabel = [[UILabel alloc] initWithFrame:CGRectMake(160, 48, 100, 30)];
        _reportStatusLabel.numberOfLines = 1;
        _reportStatusLabel.font = [UIFont systemFontOfSize:12];
        _reportStatusLabel.textColor = [UIColor lightGrayColor];
        [container_ addSubview:_reportStatusLabel];
        
        _watch = [[UILabel alloc] initWithFrame:CGRectMake(screenW - 85, 50, 70, 20)];
        _watch.text = @"查看详情";
        _watch.textColor = WQColor(36, 172, 83);
        _watch.textAlignment = NSTextAlignmentCenter;
        _watch.font = [UIFont systemFontOfSize:15];
        _watch.layer.cornerRadius = 3;
        _watch.layer.borderColor = [UIColor clearColor].CGColor;//WQColor(36, 172, 83).CGColor;
        _watch.layer.borderWidth = 1;
        _watch.numberOfLines = 1;
//        [container_ addSubview:_watch];
        
        _neiRong = [[UILabel alloc] initWithFrame:CGRectMake(10, 28, screenW - 17, 50)];
        _neiRong.numberOfLines = 0;
        _neiRong.font = [UIFont systemFontOfSize:12];
        _neiRong.textColor = [UIColor lightGrayColor];
        //[container_ addSubview:_neiRong];
        
        
        
//        _comeFromLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 68,80, 30)];
//        _comeFromLabel.numberOfLines = 0;
//        _comeFromLabel.font = [UIFont systemFontOfSize:12];
//        _comeFromLabel.textColor = [UIColor lightGrayColor];
//        [container_ addSubview:_comeFromLabel];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
